import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Bus from '@/common/Bus'
Vue.use(Bus)

// 公共css
require('@/assets/styles/index.scss')

// 屏幕适配
import 'lib-flexible'

// 手机打印调试
// import VConsole from 'vconsole';
// const vConsole = new VConsole();
// Vue.use(vConsole);

// 公共filter
import '@/common/filters'

// 自定义全局通用弹框组件
import Modal from '@/components/Modal'
Vue.use(Modal)

// 按需引入vant-ui内容
import './common/vant'

// 通过WebViewJavascriptBridge实现js与原生交互
// import Bridge from '@/common/bridge';
// Vue.prototype.$bridge = Bridge;

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
